package com.ailanyin.modules.job.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.ailanyin.common.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 定时任务日志
 *
 * @author ailanyin
 * @version 1.0
 * @since 2021/10/15 0015 上午 10:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysJobLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Long jobLogId;

    @Excel(name = "任务名称" , width = 25)
    private String jobName;

    @Excel(name = "任务分组" , width = 25)
    private String jobGroup;

    @Excel(name = "执行类方法" , width = 30)
    private String invokeTarget;

    @Excel(name = "日志信息" , width = 30)
    private String jobMessage;

    @Excel(name = "状态" , replace = {"正常_0" , "失败_1"})
    private String status;

    private String exceptionInfo;

    @Excel(name = "开始时间" , width = 30, format = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @Excel(name = "结束时间" , width = 30, format = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
